var Capacicalc = {
    DEFAULT_MAX_X: 1,
    DEFAULT_MAX_Y: 1,
    DEFAULT_MAX_Z: 1,
};


Capacicalc.Chapa = function() {
    var fn;

    this.setFnChapa = function(fnChapa) {
        fn = fnChapa;
    }

    this.getZAt = function (x, y) {
        return fn(x, y);
    }
};

Capacicalc.Capacitor = function() {
    var maxX = Capacicalc.DEFAULT_MAX_X;
    var maxY = Capacicalc.DEFAULT_MAX_Y;
    var maxZ = Capacicalc.DEFAULT_MAX_Z;
    var chapaSup;
    var chapaInf;

    this.setMaxX = function(x) {
        maxX = x;
    };

    this.getMaxX = function() {
        return maxX;
    };

    this.setMaxY = function(y) {
        maxY = y;
    };

    this.getMaxY = function() {
        return maxY;
    };
    
    this.setMaxZ = function(z) {
        maxZ = z;
    };

    this.getMaxZ = function() {
        return maxZ;
    };

    this.setChapaSup = function(chapa) {
        chapaSup = chapa;
    };

    this.getChapaSup = function() {
        return chapaSup;
    };

    this.setChapaInf = function(chapa) {
        chapaInf = chapa;
    };

    this.getChapaInf = function() {
        return chapaInf;
    };
}




